var Radio = require("./radio.js");
var inforObj = {"radioName":"music radio",
                "radioFrequency":"FM 106.7"
                }
var radio = new Radio(inforObj);

radio.on("start", function(){
    console.log(this.radioName + this.radioFrequency +" opened");
    console.log("lalala...");
})

radio.on("stop", ()=>{
    console.log(radio.radioName + radio.radioFrequency + " closed");
})

setTimeout(()=>{
    radio.emit("start");
    radio.emit("stop");
},2000);

